package com.schoolMall.dao;

import com.schoolMall.domain.ProductCategory;
import com.schoolMall.exception.ProductCategoryException;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:zyh
 * @Time:2021-08-31-19:12
 * @email:1269231889@qq.com
 */
public interface ProductCategoryDao {

    /**
     * 查询商铺的商品类别信息
     * @param shopId
     * @return
     */
    List<ProductCategory> queryProductCategory(@Param("shopId")Long shopId);

    /**
     * 批量插入数据
     * @param productCategoryList
     * @return
     */
    int batchInsertProductCategory(List<ProductCategory> productCategoryList) throws ProductCategoryException;

    int deleteProductCategory(@Param("productCategoryId")Long productCategoryId, @Param("shopId")long shopId);
}
